// @ts-ignore
/* eslint-disable */
// import { request } from 'umi';
import { request } from '@/services/request';

export async function login(body: API.LoginParams) {
  return request<API.LoginResult>('/adminapi/loginByPwd', {
    data: body,
  });
}

export async function outLogin(body, options?: { [key: string]: any }) {
  return request('/adminapi/logout', {
    data: body,
    ...(options || {}),
  });
}